import React from 'react';
import { Route, IndexRoute } from 'react-router';

import MainLayout from '../redux/containers/MainLayout';
import Dashboard from '../redux/components/dump/Dashboard';

// 布置作业 - 新增趋势
import FixupWorkNewTrend from '../redux/containers/fixup-work/NewTrend';
// 布置作业 - 累积趋势
import FixupWorkCumulativeTrend from '../redux/containers/fixup-work/CumulativeTrend';
// 布置作业 - 科目分布
import FixupWorkSubjectDistribution from '../redux/containers/fixup-work/SubjectDistribution';
// 布置作业 - 地域分布
import FixupWorkAreaDistribution from '../redux/containers/fixup-work/AreaDistribution';
// 布置作业 - 提交率
import FixupWorkSubmissionRate from '../redux/containers/fixup-work/SubmissionRate';
// 布置作业 - 题型分布
import FixupWorkQuestionsDistribution from '../redux/containers/fixup-work/QuestionsDistribution';
// 提交作业 - 新增趋势
import SubmitWorkNewTrend from '../redux/containers/submit-work/NewTrend';

// 路由配置
export default (
	<Route path='/app' component={MainLayout}>
		<IndexRoute component={Dashboard} />
		<Route path='FixupWorkNewTrend' component={FixupWorkNewTrend} />
		<Route path='FixupWorkCumulativeTrend' component={FixupWorkCumulativeTrend} />
		<Route path='FixupWorkSubjectDistribution' component={FixupWorkSubjectDistribution} />
		<Route path='FixupWorkAreaDistribution' component={FixupWorkAreaDistribution} />
		<Route path='FixupWorkSubmissionRate' component={FixupWorkSubmissionRate} />
		<Route path='FixupWorkQuestionsDistribution' component={FixupWorkQuestionsDistribution} />
		<Route path='SubmitWorkNewTrend' component={SubmitWorkNewTrend} />
	</Route>
);